package com.cloud.service.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @ClassName: ServiceController
 * @Author: Jameson Yang
 * @Date: created in 11:28 11/21/18
 */
@RestController
@RequestMapping("sone")
public class ServiceController {

    @Value("${server.port}")
    private String port;
    @RequestMapping("/dc")
    private String getInfo(@RequestParam(value = "source",defaultValue = "service-one") String source){

        return  source+" - "+port;
    }

}
